from jdbcdao.iconnection import Iconnect
import sqlite3

'''sqlite 数据库连接的实现'''


class SqliteConnection(Iconnect):

    def __init__(self, dbname):
        self.dbname = dbname

    def get_connect(self):
        conn = conn = sqlite3.connect(self.dbname)
        print('sqlite db is connect success')
        return conn




